package top.kaoshanji.p1ch05f.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.kaoshanji.p1ch05f.repositories.CommentRepository;

/**
 * 代码清单-p1ch05f-102页b：一个单例bean依赖原型bean
 * @author kaoshanji
 * ^_^
 * create time 2025/4/27 21:00
 */
@Service
public class CommentService {

    @Autowired
    private CommentRepository commentRepository;

    public CommentRepository getCommentRepository() {
        return commentRepository;
    }

}
